package com.kgc.sbt.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * cart
 * @author 
 */
@Data
@ApiModel(value = "购物车详情" ,description = "接收请求参数")
public class CartFrom implements Serializable {
    /**
     * 自增id
     */
    @ApiModelProperty(name = "id",value = "购物车id")
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id",name = "userId")
    private Integer userId;

    /**
     * 是否有效
     */
    @ApiModelProperty(value = "判断信息是否有效，默认1-有效，0-无效",name = "isExists")
    private Integer isExists;

    /**
     * 购买数量
     */
    @ApiModelProperty(value = "商品数量",name = "number")
    private Integer number;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间",name = "createTime")
    private Date createTime;

    /**
     * 商品信息
     */
    @ApiModelProperty(value = "商品详情信息",name = "goodsFrom")
    private GoodsFrom goodsFrom;

    private static final long serialVersionUID = 1L;
}